<?php
	include 'connect.php';
	if (is_numeric($_GET['id'])) {  
		$id = $_GET['id'];
		$blog_nome = mysql_real_escape_string(htmlspecialchars($_POST['blog_nome']));
		$blog_url = mysql_real_escape_string(htmlspecialchars($_POST['blog_url']));
 		mysql_query("UPDATE info SET blog_nome='$blog_nome', blog_url='$blog_url' WHERE id='$id'") or die(mysql_error()); 
 		echo '<script language=javascript>document.location.href="./../info.php?id=1"</script>';
 	}
?>